namespace Digitalmes.Domain.Entities.Mes.Equipments;

/// <summary>
/// 设备警报定义项。
/// </summary>
[SugarTable("equip_alarm_item")]
public sealed class EquipAlarmItem : AuditedEntity
{
    /// <summary>
    /// 产线代码
    /// </summary>
    [NotNull]
    public string? LineCode { get; set; }

    /// <summary>
    /// 工作中心（区域/工位/设备）
    /// </summary>
    [NotNull]
    public string? WorkCenter { get; set; }

    /// <summary>
    /// 顺序号，从 1 开始。
    /// </summary>
    public int Index { get; set; }

    /// <summary>
    /// 警报内容
    /// </summary>
    [NotNull]
    public string? Content { get; set; }

    /// <summary>
    /// 警报分类
    /// </summary>
    [NotNull]
    public string? Category { get; set; }

    /// <summary>
    /// 警报级别
    /// </summary>
    public AlarmLevelEnum AlarmLevel { get; set; }
}
